<template>
  <div class="dashboard-container">
    <div>
      <TopBar />
      <div class="content flex-cc">
        <Content />
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
defineOptions({
  name: "Dashboard",
  inheritAttrs: false,
});

import TopBar from "./TopBar.vue";
import Content from "./Content.vue";
</script>

<style lang="scss" scoped>
.dashboard-container {
  width: 100vw;
  height: 100vh;
  font-size: 1.3vh;
  color: #fff;
  background: url("../../assets/img/bg.jpg") no-repeat;
  background-size: cover;

  > div {
    width: 100%;
    height: 100%;
    padding: 12px 12px 0;
    background-color: #123c65cc;
  }

  .content {
    width: 98.6vw;
    height: 89vh;
  }
}

@font-face {
  font-family: YouSheBiaoTiHei;
  src: url("../../styles/fonts/YouSheBiaoTiHei.ttf");
}

a:hover {
  color: #e0641d;
  text-decoration: none;
  outline: 0;
}

.clear {
  clear: both;
}

.clearfix::after {
  clear: both;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  appearance: button;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

.al {
  text-align: left !important;
}

.ac {
  text-align: center !important;
}

.ar {
  text-align: right !important;
}

.aj {
  text-align: justify !important;
}

.fl {
  float: left;
}

.fr {
  float: right !important;
}

.rel {
  position: relative;
}

.abl {
  position: absolute;
}

.ovh {
  overflow: hidden;
}

.upp {
  text-transform: uppercase;
}

.fb {
  font-weight: bold;
}

input,
button,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: 0;
  outline: 0;
}

.ep1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ep2 {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.img-a {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.h100 {
  height: 100%;
}

::-webkit-scrollbar {
  width: 0.4vw;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgb(25 143 255 / 60%);
  border-radius: 10px;
}

.flex {
  display: flex;
}

.flex-a {
  flex: 1;
}

.flex-b {
  display: flex;
  justify-content: space-between;
}

.flex-c {
  display: flex;
  justify-content: center;
}

.flex-e {
  display: flex;
  justify-content: flex-end;
}

.flex-w {
  display: flex;
  flex-wrap: wrap;
}

.flex-ac {
  display: flex;
  align-items: center;
}

.flex-cb {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-cc {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-ce {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.flex-cs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-shr {
  flex-shrink: 0;
}

.pagebox {
  width: 100vw;
  height: 100vh;
}

.main {
  height: calc(100vh - 10.5vh);
  padding: 0 0.6vw;
}

.rd {
  background: red;
}

@keyframes opacity {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

@keyframes roate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes bounceDown {
  25% {
    transform: translateY(-3px);
  }

  50%,
  100% {
    transform: translateY(0);
  }

  75% {
    transform: translateY(3px);
  }
}

/* common  */
.item-type {
  position: relative;
  z-index: 1;
  height: 5.3vh;
  padding: 0 0 2.2vh 4.8vw;
  background: url("@/assets/img/bg_type.png") no-repeat left bottom;
  background-size: 100% 100%;
}

.item-type2 {
  height: 3.9vh;
  padding: 0 0 1.1vh 3.9vw;
  background: url("@/assets/img/bg_type2.png") no-repeat left bottom;
  background-size: 100% 100%;
}

.item-type .cn {
  min-width: 7.5vw;
  font-family: YouSheBiaoTiHei, sans-serif;
  font-size: 2.3vh;
  color: #fff;
}

.item-type .en {
  position: absolute;
  bottom: 2.9vh;
  left: 13vw;

  /* right: 0; */
  z-index: -1;
  font-size: 1.15vh;
  color: #2062a5;
  text-transform: uppercase;
  white-space: nowrap;
}

.item-cont {
  height: calc(100% - 5.3vh);
  background: url("@/assets/img/bgk1.png") no-repeat;
  background-size: 100% 100%;
  border-radius: 10px;
}

.item-type .select {
  margin-right: 1.1vw;
}

.item-type .btn {
  font-size: 1.5vh;
  color: #fff;
}

.item-type .btn span {
  margin-left: 1vw;
  cursor: pointer;
}

.item-type .btn span.disable {
  color: rgb(255 255 255 / 40%);
}

.item-select {
  position: relative;
}

.item-select .select {
  position: absolute;
  top: 0.2vh;
  right: 1.2vw;
  z-index: 1;
}

/* select下拉 */
.select-wrapper {
  position: relative;
  width: 100%;
  height: 28px;
  cursor: pointer;
  border-radius: 4px;
}

.select-wrapper .options {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  width: 100%;
  max-height: 120px;
  overflow-y: auto;
  background: rgb(0 132 255 / 30%);
  border: 1px solid rgb(219 252 255 / 20%);
  border-radius: 2px;
}

.select-wrapper .options li {
  padding: 4px 0 !important;
  color: #fff;
  text-align: center;
}

.select-wrapper .options li:hover {
  background: rgb(0 132 255 / 50%);
}

.select-wrapper .selected-item {
  padding: 4px;
  font-size: 1.5vh;
}

.select-wrapper .selected-item i {
  width: 0.9vh;
  height: 0.6vh;
  margin-left: 0.6vw;
  background: url("@/assets/img/icon_xjt.png") no-repeat;
  background-size: 100% 100%;
}

/* charts */
.charts {
  width: 100%;
  height: 100%;
}
</style>
